package com.online.shopping.service;

import com.online.shopping.pojo.TbSpecification;

import java.util.List;

/**
 * @author Rui
 * @version 1.0
 * @date 2020/11/12 15:33
 */
public interface SpecificationService {

    /**
     * 增加品牌
     * @param Specification
     */
    public int addSpecification(TbSpecification Specification);

    /**
     * 删除品牌
     * @param id
     */
    public int deleteSpecification(Long id);

    /**
     * 根据选择删除品牌
     * @param ids
     */
    public Long[] deleteManySpecifications(Long[] ids);

    /**
     * 修改品牌
     * @param Specification
     * @return
     */
    public int updateSpecification(TbSpecification Specification);

    /**
     * 根据id查询品牌
     * @param id
     * @return
     */
    public TbSpecification findSpecificationById(Long id);

    /**
     * 查询所有品牌
     * @return
     */
    public List<TbSpecification> findAllSpecifications();

}
